home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Selection Problem < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Selection Problem
  2. Sent:        6/27/96 10:51 AM
  3. Received:    6/27/96 11:22 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Then I must change the cursor to reflect this. But FW_CView::AdjustCursor
  9. >does not gives me the null event to let me know if the command key is
  10. >down...
  11. >
  12.  
  13. The problem is that Adjustcursor is not called from HandleIdle but from 
  14. the OpenDoc MouseEnter/Within/Leave methods. OpenDoc doesn't provide a 
  15. event record at this time. ODF has a bunch of methods in FWEventU.h to 
  16. test if the command/shift/option keys are pressed without having a event 
  17. record. 
  18.  
  19. >And I may have another problem. If the user presses the command key while
  20. >inside the selection without moving the mouse, then I must change the
  21. >cursor. Will OpenDoc/ODF call AdjustCursor in that case? I know this is an
  22. >old MacOS problem because WaitNextEvent does not gives control back to the
  23. >application unless the cursor is moved. I have seen articles giving a
  24. >solution that involves trap patching. With Copland nearby (more or less),
  25. >this is no more a solution, specially in an OpenDoc context.
  26.  
  27. That's a problem because OpenDoc is not going to call the HandleEvent 
  28. method when the command key is pressed. The only solution is to register 
  29. for idle time and test the command key during null events.
  30.  
  31. ........................................................................
  32.  Henri Lamiraux                                      lamiraux@apple.com
  33.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  34. ........................................................................
  35.  
  36.